package com.ayuan.blog.service.impl;

import org.durcframework.core.expression.ExpressionQuery;
import org.durcframework.core.expression.subexpression.ValueExpression;
import org.durcframework.core.service.CrudService;
import com.ayuan.blog.service.ClassificationService;
import com.ayuan.blog.dao.ClassificationDao;
import com.ayuan.blog.domain.Classification;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassificationServiceImpl 
        extends CrudService<Classification, ClassificationDao> 
        implements ClassificationService {

    @Override
    public List<Classification> findAll() {
        ExpressionQuery query = new ExpressionQuery();
        query.setQueryAll(true);
        return find(query);
    }
}